-
Notifications
You must be signed in to change notification settings - Fork 13
feat(web): add web generator #285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #285 +/- ##
==========================================
- Coverage 72.14% 70.59% -1.56%
==========================================
Files 117 128 +11
Lines 9992 11011 +1019
Branches 597 644 +47
==========================================
+ Hits 7209 7773 +564
- Misses 2780 3231 +451
- Partials 3 7 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🎉 The code now dehydrates to the client so it can render without JavaScript! |
Wow 😵💫 and what about codetab |
It rehydrates and runs with JS, but if you don't have JS, you can still view the docs. I used React's SSRing |
@AugustinMauroy and I got search to finally work 🎉 |
024bbea
to
dbfe55d
Compare
@nodejs/nodejs-website @nodejs/web-infra |
That got merged ✨ |
Interesting, noted. |
Apparently it does not, just goes to the / of the api docs tooling, or will it do because it is eventually doing /? |
hold on, https://api-docs-tooling.vercel.app/documentation.html#stability-overview isn't generated |
@avivkeller one feat request for the web generator: ![]() Can we make these headers sticky? What I mean is while scrolling on the utmost parent level (i.e. class, or method) while scrolling the piece that contains the title, pill, history button and the type definition should be sticky... I think that'd make it easier for the user navigating on our huge docs what section they are even in? |
Is that being generated by the legacy one? (Just OOC, or maybe we completely forgot it) |
I mentioned it to @flakey5 on Slack a few days ago. I intentionally didn't implement it here (yet), since it's kinda broken on the legacy generator, a d I wasn't sure what approach to go with.
Yes, we have the logic to generate it, No, it is not being generated. Because we generate each file individually (for Makefile caching reasons), the legacy generator does not take in all the files, and hence, cannot get the stability for each one, and does not end up generating this section. My proposed solution was to abandon it, and manually set the stabilities in node core's |
![]() @ovflowd Signature box for classes, WDYT? |
It redirects to |
You mean manually writing down the stability of each one of the modules? Noted... But how the current tooling does that if Makefile also uses only individual files? Or does it also fail currently for individual files? I don't recall tbh. |
See https://github.com/nodejs/node/blob/4102dcc2269d12cb576468370419b059c31e72b0/tools/doc/stability.mjs, which uses the generated |
I'd love to... but it's actually quite complex. If we use |
I originally merged them, but we have so many different edge cases on node core, I'd rather follow-up with an issue adding:
Before implementing such a feature. It's a lot of work to resolve the edge cases, and I don't want that to break this, and block it from merging. |
No, I don't think that would. The edge cases are headers that have slightly different descriptions/history/whatnot, and would require additional logic to merge / not to merge. You can't, in my eyes, handle the non-edge cases without accounting for the edge-cases, so it would be easier (IMO) to handle it all in a follow-up. |
FYI I made a new milestone, and will open / am opening follow-ups |
Fixes #7.
This PR adds the web generator.
Tasks / Issues
P1 – Must Complete Before Merge
P2 – Must complete before migration
P3 – Can Be Done in a Follow-up
mustache
dependencyDataTag
Get a preview
Footnotes
Add things as they appear, or leave review comments. ↩ ↩2 ↩3